//
//  HTTPRequest.h
//
//  Created by 刘川 on 2018/05/23.
//  Copyright © 2017年 com.YiQiLe. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NetworkManager.h"

/**
 * 请求回调Block(返回成功结果,以及状态码,和错误提示信息)
 */
typedef void (^httpRequestBlock)(id responseData, NSString *codeString, NSString *errorString);

@interface HTTPRequest : NSObject



#pragma mark - 获取验证码
+ (void)sendCodeWithParames:(NSDictionary *) params
           httpRequestBlock:(httpRequestBlock) httpRequestBlock;



#pragma mark - 登陆
+ (void)loginWithParames:(NSDictionary *) params
        httpRequestBlock:(httpRequestBlock) httpRequestBlock;

/** 分页查询核销的兑换券 */
+ (void)listConsumeVoucherWithParames:(NSDictionary *) params
                     httpRequestBlock:(httpRequestBlock) httpRequestBlock;

/** 统计核销的兑换券 */
+ (void)listStatConsumeVoucherWithParames:(NSDictionary *) params
                         httpRequestBlock:(httpRequestBlock) httpRequestBlock;
/** 核销兑换券 */
+ (void)consumeVoucherWithParames:(NSDictionary *) params
                 httpRequestBlock:(httpRequestBlock) httpRequestBlock;

@end
